<div class="users index">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Website Settings'); ?></h1>
			</div>
		</div><!-- end col md 12 -->
	</div><!-- end row -->



	<div class="row">

    <?php echo $this->element('admin-menu'); ?>


		<div class="col-md-9">
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<thead>
					<tr>
	<tr>
			<th><?php echo $this->Paginator->sort('setting_text');?></th>
			<th><?php echo $this->Paginator->sort('value');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
    </thead>
    <tbody>
	<?php
	$i = 0;
	foreach ($websiteSettingsArray as $websiteSetting):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo h($this->Text->truncate($websiteSetting['WebsiteSetting']['setting_text'], 100)); ?>&nbsp;</td>
		<td><?php echo h($this->Text->truncate($websiteSetting['WebsiteSetting']['value'], 100)); ?>&nbsp;</td>
		<td><?php echo $this->Time->nice($websiteSetting['WebsiteSetting']['modified']); ?>&nbsp;</td>
            <td class="actions">
            <?php 
			echo $this->Html->link('<span class="glyphicon glyphicon-search"></span>', array('action' => 'view', $websiteSetting['WebsiteSetting']['id']), array('escape' => false));
			
			 ?>
            <?php 
			
			echo $this->Html->link('<span class="glyphicon glyphicon-edit"></span>', array('action' => 'edit', $websiteSetting['WebsiteSetting']['id']), array('escape' => false));
			
			 ?>
            </td>
</tr>
<?php endforeach; ?>
				</tbody>
			</table>

			<p>
				<small><?php echo $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')));?></small>
			</p>

			<?php
			$params = $this->Paginator->params();
			if ($params['pageCount'] > 1) {
			?>
			<ul class="pagination pagination-sm">
				<?php
					echo $this->Paginator->prev('&larr; Previous', array('class' => 'prev','tag' => 'li','escape' => false), '<a onclick="return false;">&larr; Previous</a>', array('class' => 'prev disabled','tag' => 'li','escape' => false));
					echo $this->Paginator->numbers(array('separator' => '','tag' => 'li','currentClass' => 'active','currentTag' => 'a'));
					echo $this->Paginator->next('Next &rarr;', array('class' => 'next','tag' => 'li','escape' => false), '<a onclick="return false;">Next &rarr;</a>', array('class' => 'next disabled','tag' => 'li','escape' => false));
				?>
			</ul>
			<?php } ?>

		</div> <!-- end col md 9 -->
	</div><!-- end row -->


</div><!-- end containing of content -->